/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       window_rect.h

	$Header: /game/window_rect.h $

	$NoKeywords: $

 ************************************************************************/

#ifndef WINDOW_RECT_H_INCLUDED
#define WINDOW_RECT_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#pragma warning( disable: 4786 )

#include <list>
#include "counted_ptr.h"
#include "screen_point.h"

class t_window;

typedef t_counted_ptr<t_window> t_window_ptr;

typedef std::list<t_window_ptr> t_window_list;

struct t_window_rect : public t_screen_rect
{
	t_window_list windows;

	t_window_rect() {}
	explicit t_window_rect( t_screen_rect const& source ) : t_screen_rect( source ) {}
	t_window_rect( t_screen_rect const& source, t_window* new_window ) 
		         : t_screen_rect(source)
	{
		windows.push_back( t_window_ptr( new_window ) );
	}
};



#endif // WINDOW_RECT_H_INCLUDED